var jQ=jQuery(document);

var preHome=
{
    init:function()
    {
        preHome.bodyClass();
        preHome.adjustments();
    },
    bodyClass:function()
    {
        if(jQuery.cookie("marcynPreHomeView")!=null && jQuery.cookie("marcynPreHomeView")=="true")
        {
            jQ.find("body").removeClass("preHome").addClass("noPreHome");
            homeCrouselInit();
        }
        else
        {
            jQ.find("body").removeClass("noPreHome").addClass("preHome");
            jQuery.cookie("marcynPreHomeView","true",{"path":"/"});
        }
    },
    adjustments:function()
    {
        jQ.find(".loadingMessage").hide();

        var elem=jQ.find(".bannerDisclaimer_ph");
        if(elem.length>0)
            elem.css("background-image","url('"+elem.find("img").attr("src")+"')");
    }
};

jQuery(function(){ preHome.init(); });